package com.hdsx.netty.rpcclient.bio;

import com.hdsx.netty.api.CommodityServer;
import com.hdsx.netty.api.OrderServer;
import com.hdsx.netty.api.bean.Order;

import java.util.UUID;

/**
 * @author 占贤银
 * time 2024/8/9 0:14
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class BioClient {

    public static void main(String[] args) {
        BioProxy bioProxy = new BioProxy("127.0.0.1", 8888);
        OrderServer server = bioProxy.create(OrderServer.class);
        Order order = new Order(UUID.randomUUID().toString(), "苹果");
        Order result = server.getOrder(order);
        System.out.println("result = " + result);
    }
}
